import Vue from 'vue'
import ElementUI from 'element-ui';
import router from './router';
import 'element-ui/lib/theme-chalk/index.css';
// 导入字体图标
import './assets/font/iconfont.css'
import App from './App.vue'
//引入axios 
import axios from 'axios'
//配置请求路径
axios.defaults.baseURL = 'https://szsks.7baidu.cc/api/'
axios.defaults.headers.post['Content-type'] = 'multipart/form-data'
axios.interceptors.request.use( config=>{
    config.headers.Authorization = window.sessionStorage.getItem('token')
    return config
})

Vue.prototype.$http = axios

Vue.config.productionTip = false

Vue.use(ElementUI);


new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
